package com.qdsg.modulesihealsdk.entity;

import com.siheal.entitys.measure.HeightWeightEntity;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2022/12/9 17:41
 */
public class HwBmiResultEntity extends BaseMeasureEntity {
    private HeightWeightEntity hwEntity;

    public HwBmiResultEntity(HeightWeightEntity hwEntity){
        this.hwEntity = hwEntity;
    }
    public HeightWeightEntity getHwEntity() {
        return hwEntity;
    }

    public void setHwEntity(HeightWeightEntity hwEntity) {
        this.hwEntity = hwEntity;
    }

    @Override
    public String getDetectResult(){

        if (hwEntity == null){
            return "";
        }
        //身高|体重
        return hwEntity.getHeight()+"|"+ hwEntity.getWeight();
    }
}
